<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Register</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
        </div>
        <div class="body">
            <h1>Register</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>

            <g:render template="/validationErrors" model="[bean:user]" />
			
            <p>Enter your details below to register for Grails Camelot</p>        
             <g:form action="handleRegistration">
                     <p>
                         <label class="label" for="login">User name:</label>
                         <input type="text" name="name" />
                     </p>
                     <p>
                         <label for="password">Password:</label>
                         <input type="password" name="password" />
                     </p> 
                     <p>
                         <label for="confirm">Confirm Password:</label>
                         <input type="password" name="confirm" />
                     </p>
                     <p>
                         <label for="firstName">Display Name:</label>
                         <input type="text" name="displayName" />
                     </p>
                     <p>
                         <label for="email">Email:</label>
                         <input type="text" name="email" />
                     </p>
                    <input class="button" type="submit" value="Register" />
             </g:form>
        </div>
    </body>
</html>
